Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Use <a> element to parse url instead of Regexp #418

Closed
wants to merge 1 commit into from
Closed

Use <a> element to parse url instead of Regexp #418

wants to merge 1 commit into from

Conversation

alepop
Copy link
Contributor

@alepop alepop commented Jun 15, 2017

There an error when parsing the wrong URL with regexp.
fix #417

Copy link
Contributor

@slaweet slaweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @alepop for the PR. It's much better than my original solution, though it still doesn't work well on the reported input (liskwallet.punkrock.me). <a> element treats it as local path. In electron wrapper, it connects to a mainnet peer. On localhost:8080 it tries to connect to localhost:8080.

@alepop
Copy link
Contributor Author

alepop commented Jun 16, 2017

@slaweet yep. It is a basic behavior for nonvalid URL format. if you pass a string that not represent the URL the a element use current URL from the browser.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using wrong URL as custom node results in endless loop
4 participants